import request from '@/utils/request'

export function Login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data

  })
}
// 获取用户基本信息
export function getInfo() {
  return request({
    url: '/sys/profile',
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
// 获取头像
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
